package com.dly.blog.provider;

import com.dly.blog.dto.email.EmailSendDTO;
import com.dly.blog.provider.email.EmailServiceProvider;
import com.dly.blog.service.EmailService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @Author: DaiLiYu
 * @Date: 2023/7/19 11:08
 */
@AllArgsConstructor
@Component
public class EmailServiceProviderImpl implements EmailServiceProvider {

    private final EmailService emailService;

    @Override
    public void sendEmail(EmailSendDTO emailSendDto) {
        emailService.sendEmail(emailSendDto);
    }

}
